import request from '@/utils/request'

// 查询法律法规附件列表
export function listLawattach(query) {
  return request({
    url: '/kno/lawattach/list',
    method: 'get',
    params: query
  })
}

// 查询法律法规附件详细
export function getLawattach(lawattachid) {
  return request({
    url: '/kno/lawattach/' + lawattachid,
    method: 'get'
  })
}

// 新增法律法规附件
export function addLawattach(data) {
  return request({
    url: '/kno/lawattach',
    method: 'post',
    data: data
  })
}

// 修改法律法规附件
export function updateLawattach(data) {
  return request({
    url: '/kno/lawattach',
    method: 'put',
    data: data
  })
}

// 删除法律法规附件
export function delLawattach(lawattachid) {
  return request({
    url: '/kno/lawattach/' + lawattachid,
    method: 'delete'
  })
}
